package kcms.message.service;

import java.util.List;

import kcms.db.Course;
import kcms.db.Message;
import kcms.db.Messagestatus;
import kcms.db.PageBean;
import kcms.db.PptAndContent;
import kcms.db.TeachStudent;
import kcms.db.ViewAssignScore;
import kcms.db.ViewMessage;


public interface MessageService {
	
	public List<TeachStudent> getAllTeach(String tid);
	
	public boolean addMessage(Message m);
	
	public List<Message> getHisMessage(String tid);
	
	public Course getOneCourse(String cid);
	
	public List<Course> getAllCourse();
	
	public void deleteMessage(int messageid);
	
	public List<Messagestatus> getHisMessagestatus(String sid);
	
	public Message getOneMessage(int messageid);
	
	public List<ViewMessage> getAllMessagesBySid();

	public List<ViewMessage> getAllMessagesByCondition(String condition);

	public PageBean getForPage(int pageSize,int page,String condition,String uid);

	public void updateMessageStatus(Messagestatus messageStatus);
	
	public Messagestatus getOneMessageStatusById(int messageid,String sid);
	
	public ViewMessage getOneVMessage(int messageid,String sid);
	
	public List<ViewMessage> getAllMessagesBySender(String sender);
	
	public void updateMessage(Message m);
	
	public void updateMessagestatus(Messagestatus ms);
	
	public List<Messagestatus> getMessagestatusById(int messageid);
	
	public List<PptAndContent> listPptMessages(String sid);
	
	public List<ViewAssignScore> listAssignMessages(String condition,String sid);

    public ViewAssignScore getOneAssignMessage(int assignmentid);
    
    public void updateAssignMessage(ViewAssignScore va);

}
